﻿using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace ProcurementManagement.Controllers
{
    /// <summary>
    /// 测试控制器
    /// </summary>
    [Route("api/[controller]/[action]")]
    [Authorize]
    [ApiController]
    public class hhController : ControllerBase
    {
        [HttpGet]
        public IActionResult Test()
        {
            return Ok("测试成功");
        }
        [HttpGet]
        [Route("APollo")]
        public IActionResult ApolloTest([FromServices]IConfiguration configuration,string key)
        {
            var elkConfig = configuration[key];
            return Ok(elkConfig);
        }
    }
}
